package com.zllkj.mm.api.net;


import com.zllkj.mm.api.network.subscriber.BaseString;

import okhttp3.RequestBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;

public interface HttpService {
    /**
     * file/uploadFile
     * 上传文件
     */
    @Multipart
    @POST("file/uploadFile")
    Observable<BaseResultEntity<BaseString>> upload(@Part("file\";filename=\"file.png") RequestBody requestBody
            /*@Body MultipartBody multipartBody*/);
    //@Part("download[]\";filename=\"xx.png") RequestBody requestBody
    //@Part MultipartBody.Part file

}
